-- GENERATED SPELL FOR [Wavethrasher] --


function spell0_6348(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_6348', 642, 1)
end

function Sorts_6348(pUnit, Event)
local choix_sorts_6348 = math.random(0, 0)
if choix_sorts_6348 == 0 then
pUnit:RegisterEvent('spell0_6348', 1, 1)
end
end

function mob6348_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6348', math.random(1500, 3000), 1)
end

function mob6348_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6348_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6348_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6348, 1, 'mob6348_Action')
RegisterUnitEvent(6348, 2, 'mob6348_Leave')
RegisterUnitEvent(6348, 3, 'mob6348_Kill')
RegisterUnitEvent(6348, 4, 'mob6348_Die')
